/**
 * 
 */
package com.resanet.ws.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Training
 * 
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class CompagnieAerienne {

	@XmlAttribute
	private Integer id;

	@XmlAttribute
	private String nom;

	@XmlAttribute
	private boolean lowCost;

	@XmlAttribute
	private Date dateCreation;

	@XmlElement
	private List<TypeAvion> typesAvions;
	
	
	public CompagnieAerienne() {
		typesAvions=new ArrayList<TypeAvion>();
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the nom
	 */
	public String getNom() {
		return nom;
	}

	/**
	 * @param nom
	 *            the nom to set
	 */
	public void setNom(String nom) {
		this.nom = nom;
	}

	/**
	 * @return the lowCost
	 */
	public boolean isLowCost() {
		return lowCost;
	}

	/**
	 * @param lowCost
	 *            the lowCost to set
	 */
	public void setLowCost(boolean lowCost) {
		this.lowCost = lowCost;
	}

	/**
	 * @return the dateCreation
	 */
	public Date getDateCreation() {
		return dateCreation;
	}

	/**
	 * @param dateCreation
	 *            the dateCreation to set
	 */
	public void setDateCreation(Date dateCreation) {
		this.dateCreation = dateCreation;
	}

	/**
	 * @return the typesAvions
	 */
	public List<TypeAvion> getTypesAvions() {

		return typesAvions;
	}

	/**
	 * @param typesAvions
	 *            the typesAvions to set
	 */
	public void setTypesAvions(List<TypeAvion> typesAvions) {
		this.typesAvions = typesAvions;
	}

}
